import http from '../common/axios.js'

//全部api接口
export default {
    //获取微信openid
    async getOpenid(data = {}) {
        const response = await http.post('/getOpenid', data);
        console.log('登录响应:', response);
        return response;
    },

    //添加会议预约
    async addMeetingAppointment(data = {}) {
        const response = await http.post('/meeting/addMeetingAppointment', data);
        return response;
    },

    //获取会议预约
    async getMeetingAppointment(data = {}) {
        return await http.get('/meeting/getMeetingAppointment', data);
    },

    //获取会议用车记录列表
    async getMeetingVehicleUsageRecordList(data = {}) {
        return await http.get('/meeting/getMeetingVehicleUsageRecordList', data);
    },

    //登录
    async login(data = {}) {
        const response = await http.post('/login', data);
        console.log('登录响应:', response);
        return response;
    },

    //获取会议主题
    async getMeetingSubjectInfo(data = {}) {
        return await http.get('/meeting/meetingSubjectInfo', data);
    },

    //获取网站配置项信息
    async getWebConfig(data = {}) {
        return await http.get('/common/getWebConfig', data);
    },

    //获取会议子表信息列表
    async getMeetingList(data = {}) {
        return await http.get('/meeting/getMeetingList', data);
    },

    //获取坐席图列表
    async getSeatImageList(data = {}) {
        return await http.get('/meeting/getSeatImageList', data);
    },

    //获取就餐信息列表
    async getBiningList(data = {}) {
        return await http.get('/meeting/getBiningList', data);
    },

    //添加返程用车申请
    async addMeetingBackVehicleUsageRecord(data = {}) {
        const response = await http.post('/meeting/addMeetingBackVehicleUsageRecord', data);
        return response;
    },

    //添加会议用车申请
    async addMeetingUserCar(data = {}) {
        const response = await http.post('/meeting/addMeetingUserCar', data);
        return response;
    },

    //获取返程用车申请
    async getMeetingBackVehicleUsageRecord(data = {}) {
        return await http.get('/meeting/getMeetingBackVehicleUsageRecord', data);
    },


    //获取酒店入住详情
    async getHotelMeetingInfo(data = {}) {
        return await http.get('/meeting/getHotelMeetingInfo', data);
    },


    //获取签到列表
    async getSignInList(data = {}) {
        return await http.get('/meeting/getSignInList', data);
    },
    //获取签到详情
    async getSignInInfo(data = {}) {
        return await http.get('/meeting/getSignInInfo', data);
    },
    //更新签到信息
    async updateSignInInfo(data = {}) {
        const response = await http.post('/meeting/updateSignInInfo', data);
        return response;
    },


}